#pragma once

#include "Client.h"

// 数据的业务处理
class CIodp
{
public:
    CIodp() {}
    virtual ~CIodp() {}

public:
    virtual bool Init(void *pShm) = 0;
    virtual void Destroy() = 0;

    virtual char *GetModuleName() = 0;
    virtual uint32_t GetShmSize() = 0;

    virtual void *NewClient(void *pSvr, CClient *pClnt) = 0;
    virtual bool DeleteClient(void *pNode) = 0;
    virtual bool DataHandle(void *pHandle, const uint8_t *const pData, uint16_t nLen) = 0;
};